  var app =angular.module('myApp');
  app.controller('f-myController',["$css","$http","$scope",function ($css,$http,$scope) {
      $css.add("./mine/css/mine.css");
      $css.add("./mine/css/swiper.min.css");
      $http.get("./data/h5.json").success(function(data){
        // console.log(data);
        $scope.arr=data.data;

        console.log($scope.arr);

      })
      $(document).ready(function(){
      			$('.q-shopCar').click(function(){
			var myData = JSON.parse(localStorage.getItem('qiu'));
					console.log(myData)
			if(myData!=null){
				$('.q-shopCar').attr('href','/#/shopping');
			}else{
				$('.q-shopCar').attr('href','/#/login');
			}	
		})
      	
      })
  }])
